﻿using LanguageSchool.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace LanguageSchool.Controls
{
    /// <summary>
    /// Логика взаимодействия для CalendarCell.xaml
    /// </summary>
    public partial class CalendarCell : UserControl
    {
        public static readonly DependencyProperty DateProperty =
              DependencyProperty.Register("Date", typeof(DateTime),
              typeof(CalendarCell), new FrameworkPropertyMetadata(DateTime.Now));

        public DateTime Date
        {
            get { return (DateTime)GetValue(DateProperty); }
            set { SetValue(DateProperty, value); }
        }

        public List<Shedule> CellItems
        {
            set
            {
                elems.ItemsSource = value;
            }
            get
            {
                return (List<Shedule>)elems.ItemsSource;
            }
        }

        public CalendarCell()
        {
            InitializeComponent();
        }
    }
}
